package com.lqs.blog.controller;

import com.lqs.blog.service.LoginService;
import com.lqs.blog.service.RegisterService;
import com.lqs.blog.vo.Result;
import com.lqs.blog.vo.param.RegisterParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("register")
@RestController
public class RegisterController {
    @Autowired
    private LoginService loginService;
    @Autowired
    private RegisterService registerService;

    @PostMapping()
    public Result register(@RequestBody RegisterParams registerParams) {

        return registerService.register(registerParams);
    }

}
